package cn.wit.summit.chwan.Stat;

/**
 * Created by Alan on 2018/6/1.
 */

public enum AdPosition {
    IndexTopAd("IndexTopAd", "头部广告")
    ,IndexDailyNew("IndexDailyNew","每日上新")
    ,IndexGameStarter("IndexGameStarter","新游首发")
    ,IndexHot("IndexHot","热门风向标")
    ,IndexCollection("IndexCollection","合集")
    ,IndexDailyRecommendation("IndexDailyRecommendation","每日推荐")
    ,FindFastEntrance("FindFastEntrance","快速入口")
    ,FindHotGame("FindHotGame","热门游戏")
    ,MyBannerAd("MyBannerAd","我的banner广告");

    String mode;
    String name;

    AdPosition(String mode, String name) {
        this.name = name;
        this.mode = mode;
    }

    public static String getModeByEnum(int status) {
        return AdPosition.values()[status].mode;
    }

    public static String getNameByEnum(int status) {
        return AdPosition.values()[status].name;
    }
}
